var headLinkHtml = '<div id="top" class="banner">' + 
	'<div id="top_logo">' +
	'<img alt="logo" src="/static/images/saturn.png" height="50" style="vertical-align:middle;"><span style="font-size:14px;color=black;">Satrun Config Center Manage</span>' +
	'</div>' +
	'<div id="top_links">' +
	'<div id="#top_user">' +
	'		<img src="/static/images/icons/user.png"  style="vertical-align:middle;width: 30px;height: 30px; ">' +
	'		&nbsp;&nbsp;<span id="userStatus" style="font-size:14px;color:black">&nbsp;</span>' +
	'	<a href="javascript:void(0);" onclick="logout();" target="_parent">' +
	'		<img src="/static/images/icons/exit.png"  style="vertical-align:middle;width: 30px;height: 30px; ">' +
	'	</a>' +
	'</div>' +
	'</div>' +
	'</div>';

/**
 * show user status
 */
var userInfo = null;
function initUserStatus(){
	Ext.Ajax.request({// 排列顺序
		url : '/getUserInfo',
		method : 'GET',
		success : function(response,action) {
			userInfo = Ext.util.JSON.decode(response.responseText);
			var userStatus = Ext.get('userStatus').dom;
			userStatus.innerHTML = "您好，" + userInfo.userName + "&nbsp;&nbsp;";
		},
		failure : function(form, action) {
			
		}
	});
}
